package kk.learn.rabbitmq.dlxdemo.repository;

import kk.learn.rabbitmq.dlxdemo.model.Order;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author KK
 * @since 2021-10-30
 */
public interface OrderRepository extends JpaRepository<Order,Long> {


    List<Order> findOrdersByUserId(Long userId);


}
